package com.mm.user.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

/**
 * @BelongsProject: chatgpt-java-develop
 * @BelongsPackage: com.unfbx.model
 * @Author : 游在海里的鱼
 * @CreateTime : 2024-03-17  16:04
 * @Version : 1.0
 * @ClassName : 用户类
 * @Description : TODO
 */
@Data
@TableName("t_user")
public class User {
    //用户id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //用户名
    private String username;
    //用户密码
    @JsonIgnore
    private String password;
    //用户昵称
    private String nickname;
    //电话号码
    @TableField(value = "phoneNum")
    private String phoneNum;
    //邮箱
    private String email;
    //性别
    private Byte gender;
    //头像路径
    @TableField(value = "avatarUrl")
    private String avatarUrl;
    //用户简介
    private String remark;
    //状态码 0普通 1会员
    private Byte state;
    //注册时间
    @JsonFormat( pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField(value = "createTime")
    private Date createTime;
    //修改时间
    @JsonFormat( pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField(value = "updateTime")
    private Date updateTime;
    //是否在使用AI
    @JsonIgnore
    @TableField(exist = false)
    private boolean ai_isUsing;


}
